<%@ page language="java" import="java.util.*,com.model.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<%
	String name=new String(request.getParameter("name").getBytes("ISO8859-1"),"UTF-8");
    //System.out.println(name);
    ArrayList<Beanuser> al=new ArrayList<Beanuser>();
	locationBO lbo=new locationBO();
	al=lbo.getUserInfo(name);
	
	Beanuser lt=al.get(0);
	String username=lt.getName();
	System.out.println(username);
	String lat=lt.getLat();
	String lng=lt.getLng();
	String alarm=lt.getAlarmFlag();
	//System.out.println(lat);
	%>
    <base href="<%=basePath%>">
    <title>My JSP 'Trace.jsp' </title>
   	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> 
	<link rel="stylesheet" type="text/css" href="css/styles.css">
	<link rel="stylesheet" type="text/css" href="css/menu.css">
	<script type="text/javascript" src="js/menu.js"></script>
	<script type="text/javascript" src="js/trace.js"></script>
	

  </head>
  
<body onload="initialize('<%=lat%>','<%=lng%>','<%=username%>')">
    <div id="header"></div>
	<div id="menu">
	    <ul id="navigation">
		<li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> 
			<a href="#">更多</a> 
			<ul> 
				<li><a href="#">统计报表</a></li> 
				<li><a href="#">待添加</a></li> 
				<li><a href="#">待添加</a></li> 
				<li><a href="#">待添加</a></li> 
			</ul> 
		</li> 
			<li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> 
			<a href="#">定位</a> 
		<ul> 
			<li><a href="#">实时定位</a></li> 
			<li><a href="#">轨迹回放</a></li> 
			<li><a href="#">菜单3</a></li> 
			<li><a href="#">菜单4</a></li> 
			<li><a href="#">菜单5</a></li> 
		</ul> 
			</li> 
			<li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> 
			<a href="#">设置</a> 
		<ul> 
			
			<li><a href="#">用户管理</a></li> 
			<li><a href="SetSecurity.jsp">安全路径</a></li> 
		     <li><a href="#">参数设置</a></li> 
		</ul> 
			</li> 
		</ul>
	</div>
	<div id="main">
	<div id="containe_trace">地图</div>
    <div id="clearfloat"></div>
	</div>
	<div id="footer">footer</div>
  </body>
</html>
